home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / comm / misc / LCR-I.lha / lcr-i / Install LCR-I < prev    next >
Text File  |  2001-05-30  |  4KB  |  166 lines

  1. ;
  2. ; Installer script for Tankbuch installation
  3. ; $VER: Install_LCR-I by Ralf Scholl
  4. ;
  5. ;********* Setup all the messages *********************************************
  6. ;
  7.  
  8. (procedure SetupMessages
  9.  (
  10.   (set DefDest        "LCR:")
  11.   (set FontSrc        "Fonts/")
  12.   (set FontDest       "Fonts:")
  13.   (set DokSrc         "Dok/")
  14.   (set DokDest        "LCR:Dok/Guide")
  15.   (set DefCatalogDir  (tackon "LOCALE:Catalogs" @language))
  16.  
  17.   (if (= @language "english")
  18.    (
  19.      (set #InstallWhat         "What do you want to install ?")
  20.      (set #InstallChoice1      "Main program + Font")
  21.      (set #InstallChoice2      "Documentation")
  22.      (set #SelectMainDir       "Select the directory where to copy the Main program.")
  23.      (set #CopyingMainProg     "Copying the Main program...")
  24.      (set #ChangeStartup       "Insert path in startup-sequence...")
  25.      (set #CopyFont            "Copying the Font 'XEN' to Fonts:")
  26.      (set #Fixfonts-prompt     "It is a recommendation to run 'FixFont' now.\n(It may run a while!)")
  27.      (set #SelectDocDir        "Select the directory where to copy GUIDE-documentations.")
  28.      (set #CopyingDoc          "Copying documentation...")
  29.    )
  30.   )
  31.   (if (= @language "deutsch")
  32.    (
  33.      (set #InstallWhat         "Was möchten Sie installieren ?")
  34.      (set #InstallChoice1      "Hauptprogramm + Font")
  35.      (set #InstallChoice2      "Dokumentation")
  36.      (set #SelectMainDir       "Wählen Sie das Verzeichnis, in das Sie das Hauptprogramm kopieren möchten.")
  37.      (set #CopyingMainProg     "Kopiere das Hauptprogramm...")
  38.      (set #ChangeStartup       "Füge Pfad in die startup-sequence...")
  39.      (set #CopyFont            "Kopiere den Font 'XEN' nach Fonts:")
  40.      (set #Fixfonts-prompt     "Es wird empfohlen das Tool FixFont nun zu starten.\n(Es kann einige Zeit laufen!)")
  41.      (set #SelectDocDir        "Wählen Sie das Verzeichnis, in das Sie die GUIDE-Dokumentationen kopieren möchten.")
  42.      (set #CopyingDoc          "Kopiere die Dokumentation...")
  43.    )
  44.   )
  45.  )
  46. )
  47. ;********* Installiere das Hauptprogramm ************************************
  48. ;
  49.  
  50. (procedure InstallMainProg
  51.  (
  52.   (set MainDir
  53.     (askdir
  54.      (prompt #SelectMainDir)
  55.      (help @askdir-help)
  56.      (default DefDest)
  57.     )
  58.   )
  59.  
  60.   (copyfiles
  61.     (prompt #CopyingMainprog)
  62.     (help @copyfiles-help)
  63.     (source "LCR-I")
  64.     (dest MainDir)
  65.     (infos)
  66.   )
  67.   (copyfiles
  68.     (prompt #CopyingMainprog)
  69.     (help @copyfiles-help)
  70.     (source "PICX.obj")
  71.     (dest MainDir)
  72.     (infos)
  73.   )
  74.  
  75. ; *** Kopiere mit Fragen die wichtigen Daten ***
  76.  
  77.   (Message "\n\nEs wird nun der Font 'XEN' kopiert.\nWenn Sie die Installation hier abbrechen,\nist das Programm LCR-P bereits funktionstüchtig,\njedoch werden die Texte mit dem eingestellten Fenster-Font dargestellt,\nwas nicht immer die optimale Einstellung darstellt.\n\nEs wird empfohlen den Font zu installieren!")
  78.   (copyfiles
  79.     (prompt #CopyFont)
  80.     (help @copyfiles-help)
  81.     (source FontSrc)
  82.     (all)
  83.     (dest FontDest)
  84.     (confirm)
  85.   )
  86.   (run "SYS:System/FixFonts"
  87.     (prompt #fixfonts-prompt)
  88.     (confirm)
  89.     (help #fixfonts-help)
  90.   )
  91.  )
  92. )
  93.  
  94. ;********* Installiere die Anleitung ****************************************
  95. ;
  96.  
  97. (procedure InstallDoc
  98.  
  99.  (
  100.   (Message "\n\nEs werden nun die Anleitungen im AmigaGuide-Format kopiert.")
  101.   (set DocDir
  102.     (askdir
  103.       (prompt #SelectDocDir)
  104.       (help @askdir-help)
  105.       (default DokDest)
  106.     )
  107.   )
  108.   (copyfiles
  109.     (prompt #CopyingDoc)
  110.     (help @copyfiles-help)
  111.     (source DokSrc)
  112.     (all)
  113.     (dest DocDir)
  114.     (infos)
  115.   )
  116.  )
  117. )
  118. ;********* Start of the installation program **********************************
  119. ;
  120. (complete 0)
  121. (user 2)
  122. (set #InstallWhat "")
  123. ;
  124. ;********* Setup messages and check language
  125. ;
  126. (SetupMessages)
  127. (if (= #InstallWhat "")
  128.   (
  129.     (set langnum
  130.       (askchoice
  131.     (prompt "Which language do you speak ?")
  132.     (help @askoptions-help)
  133.     (choices "english" "deutsch")
  134.       )
  135.     )
  136.     (set @language (select langnum "english" "deutsch"))
  137.     (SetupMessages)
  138.   )
  139. )
  140. ;
  141. ;********* Displays the welcome message
  142. ;
  143. (user 1)
  144. (welcome)
  145. ;
  146. ;********* Ask which part is to be installed
  147. ;
  148. (set ToInstall
  149.   (askoptions
  150.     (prompt #InstallWhat)
  151.     (help @askoptions-help)
  152.     (choices #InstallChoice1 #InstallChoice2)
  153.   )
  154. )
  155.  
  156. ;******** Install each part
  157. ;
  158. (complete 16) (if (BITAND ToInstall  1) (InstallMainProg))
  159. (complete 78) (if (BITAND ToInstall  2) (InstallDoc))
  160. ;
  161.  
  162. ;******** End
  163. ;
  164. (complete 100)
  165. (exit (quiet))
  166.